from collections import deque

q = deque([(1,0),(2,0),(3,0)])
dx = 1
dy = 0
for i in range(30):
    nx = (q[0][0] + dx, q[0][1] + dy)
    q.pop()
    q.appendleft(nx)
    print(q)

